﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DZJIFC.Model
{
    public enum AP242ItemType : int
    {
        Unknown = -1,
        Model = 0,
        Product = 1,
        Assembly = 2,
        Instance = 3,
        Geometry = 4,
    }

    public class AP242ItemData : IUIItem
    {
        #region Methods

        public AP242ItemData(object instance, AP242ItemType type, TreeNode treeNode)
        {
            Instance = instance;
            Type = type;
            TreeNode = treeNode;
        }

        #endregion // Methods

        #region Properties

        public object Instance { get; private set; }
        public AP242ItemType Type { get; set; } = AP242ItemType.Unknown;
        public TreeNode TreeNode { get; private set; }

        #region

        public IInstance Item { get; set; } // for AP242Instance only

        #endregion 

        #endregion // Properties
    }
}
